import http from '../utils/request'
const NoticeAPI = {

    /**消息列表 */
    noticeList: (data) => {
        return http.request({
            url: '/api/notice/list',
            method: 'GET',
            data
        })
    },
    /**消息详情 */
    noticeDetail: (data) => {
        return http.request({
            url: '/api/notice/detail',
            method: 'GET',
            data
        })
    },
    /** 提交消息 */
    noticeSubmit: (data) => {
        return http.request({
            url: '/api/notice/submit',
            method: 'POST',
            data
        })
    },
    /**未读消息列表 */
    unreadMessageList: (data) => {
        return http.request({
            url: '/api/notice/unreadMessage',
            method: 'GET',
            data
        })
    },
}
export default NoticeAPI